package com.service;

import com.model.Payment;
import com.model.SaleOrder;
import com.model.SaleOrderItem;

public interface SaleService {
	// add order
	public boolean addOrder(SaleOrder saleOrder);

	// add orderItem
	public boolean addOrderItem(SaleOrderItem saleOrderItem);

	// add payment
	public boolean addPayment(Payment payment);

	// select order
	public String selectSaleOrder(String key, String type, int page, int rows,
			String sort, String order);

	// serial number
	public int getLastNum();

	/*
	 * // enterProduct public List<?> enterProduct(String productNo, int
	 * quantity, double discount);
	 */
	public int getTotal();

	public int getLikeTotal(String key, String type);

	public boolean sale(SaleOrder saleOrder, SaleOrderItem saleOrderItem,
			Payment payment);

	public int getPaymentNum();
}
